import config from "../config";
import { initExtend } from "./extend";

export function initGlobalAPI(Vue) {
  const configDef = {};
  configDef.get = () => config;
  Object.defineProperty(Vue, "config", configDef);

  Vue.options = Object.create(null);
  Vue.options._base = Vue;

  initExtend(Vue);
}
